﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Hotnet.Entity.Picture[]>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%
		PictureCategory category = ViewData["Category"] as PictureCategory;
		PictureGroup group = ViewData["Group"] as PictureGroup;
	%>
	图片批量编辑 -
	<%=group.Name %>
	-
	<%=category.Name %>
	- 图片管理 - Hotent后台管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<%
		PictureCategory category = ViewData["Category"] as PictureCategory;
		PictureGroup group = ViewData["Group"] as PictureGroup;
	%>
	<h2 class="mb5">
		图片批量编辑</h2>
	<div class="m5">
		<%=Html.ActionLink("返回" + group.Name + "图片组", "Index", "AdminPictureGroup", new { id = group.GroupID }, null)%>
	</div>
	<div class="b1 m5">
		<%using(Html.BeginForm()){ %>
			<div class="tac m5">
				<input type="submit" value="保存" class="b1" style="width:20%;height:45px;" />
			</div>
			<%foreach (Picture item in Model){%>
			<input type="hidden" name="pictureIds" value="<%=item.PictureID %>" />
			<div class="b1 m3">
				<div class="b2b fl m3 tac" style="width: 185px; height: 185px;">
					<img alt="" class="m3" style="border: 0; width: 180px; height: 180px" src="<%=Hotnet.Biz.Properties.Settings.Default.UploadFolder + item.ThumbnailPath%>" />
				</div>
				<div class="fl m3" style="width:72%;">
					<div>
						<span>图片说明:</span>
						<textarea name="desc<%=item.PictureID %>" cols="0" rows="0" style="width:88%;height:120px;"><%=Html.Encode(item.Description) %></textarea>
					</div>
					<div>
						<span>组内顺序:</span>
						<input type="text" name="order<%=item.PictureID %>"  style="width:25px;height:20px;" value="<%=item.OrderInGroup %>"/>
						<a class="fr" href="#">Top</a>
				   </div>
				</div>
				<div class="cb"></div>
			</div>
			<% } %>
			<div class="tac m5">
				<input type="submit" value="保存" class="b1" style="width:20%;height:45px;" />
			</div>
		<% } %>
	</div>
	<div class="m5">
		<%=Html.ActionLink("返回" + group.Name + "图片组", "Index", "AdminPictureGroup", new { id = group.GroupID }, null)%>
	</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="StyleContent" runat="server">
</asp:Content>
